const mongoose = require('mongoose');
const Schema = mongoose.Schema;
let ObjectId = Schema.Types.ObjectId;

// 创建风格表
const styleSchema = new Schema({
  id: {type: ObjectId},//风格id
  name: String,//风格名
  desciption: String,//描述
  createAt: {type: Date, default: Date.now},//生成时间
})

mongoose.model('Style',styleSchema);
